/*
 * Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
 *
 * https://www.mall4j.com/
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */
package com.yami.shop.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yami.shop.bean.model.ShopWithdrawCash;
import com.yami.shop.common.util.PageParam;

import javax.servlet.http.HttpServletResponse;

/**
 * 商家提现申请信息
 *
 * @author Dwl
 * @date 2019-09-19 14:22:08
 */
public interface ShopWithdrawCashService extends IService<ShopWithdrawCash> {

    /**
     * 提现申请
     *
     * @param shopWithdrawCash 店铺提现记录参数
     */
    void withdrawCash(ShopWithdrawCash shopWithdrawCash);

    /**
     * 分页获取提现申请数据
     *
     * @param page
     * @param shopWithdrawCash
     * @return
     */
    IPage<ShopWithdrawCash> pageShopWithdrawCash(PageParam<ShopWithdrawCash> page, ShopWithdrawCash shopWithdrawCash);

    /**
     * 审核提现记录
     * @param withdrawCashId 提现id
     * @param shopWithdrawCash 店铺提现参数
     * @param userId 用户id
     * @param openId 第三方id
     */
    void auditWithdrawCash(Long withdrawCashId, ShopWithdrawCash shopWithdrawCash, Long userId, String openId);

    /**
     * 获取店铺提现记录
     * @param shopId 店铺id
     * @return  店铺提现信息
     */
    ShopWithdrawCash getShopWithdrawCashByShopId(Long shopId);

    /**
     * 获取筛选条件筛选的提现信息
     * @param shopWithdrawCash
     * @return
     */
    void exportShopWithdrawCash(ShopWithdrawCash shopWithdrawCash, HttpServletResponse response);
}
